﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace CDB.Model.Utilitarios
{
    public class ServerBD
    {
        #region Propriedades
        public string Server
        {
            get { return ServerName + "\\" + InstanceName; }
        }
        public string ServerName { get; set; }
        public string InstanceName { get; set; }
        public string Version { get; set; }

        private string s;
        #endregion

        #region Métodos
        public void FromDataRow(DataRow pobjDataRow)
        {
            this.ServerName = pobjDataRow["ServerName"].ToString();
            this.InstanceName = pobjDataRow["InstanceName"].ToString();
            this.Version = pobjDataRow["Version"].ToString();
        }
        #endregion
    }
}
